import request from '@/utils/request'
export const getDepartments = function() {
  return request.get('/company/department')
}
export const getEmployeeSimple = function() {
  return request.get('/sys/user/simple')
}
export const addDepartments = function(data) {
  return request.post('/company/department', data)
}
export const delDepartment = function(id) {
  return request.delete(`/company/department/${id}`)
}
export const getDepartmentById = function(id) {
  return request.get(`/company/department/${id}`)
}
export const updateDepartments = function(data) {
  return request.put('/company/department/' + data.id, data)
}
